package com.zzyl.dto;

import com.zzyl.base.BaseEntity;
import com.zzyl.entity.NursingProjectPlan;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 护理计划新增/修改 DTO
 */
@Data
@ApiModel("护理计划新增/修改请求体")
public class NursingPlanDto extends BaseEntity {

    @NotBlank
    @ApiModelProperty("计划名称")
    private String planName;

    @ApiModelProperty("排序号")
    private Integer sortNo;

    @NotNull
    @ApiModelProperty("状态 0禁用 1启用")
    private Integer status;

    @Valid
    @NotEmpty
    @ApiModelProperty("计划-项目关联列表")
    private List<NursingProjectPlan> projectPlans;
}